---
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-master
  creationTimestamp: null
  name: redis-master
spec:
  replicas: 1
  selector:
    matchLabels:
      platform-v.drop-app/deployment: redis-master
  strategy: {}
  template:
    metadata:
      annotations:
        platform-v.drop-app/belongs-to: redis-master
      creationTimestamp: null
      labels:
        platform-v.drop-app/deployment: redis-master
        platform-v.drop-app/loadbalanced: "true"
        platform-v.drop-app/service: redis-master
    spec:
      containers:
      - image: k8s.gcr.io/redis:e2e
        name: redis-master
        ports:
        - containerPort: 6379
          name: p-6379-6379
        resources: {}
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-slave
  creationTimestamp: null
  name: redis-slave
spec:
  replicas: 1
  selector:
    matchLabels:
      platform-v.drop-app/deployment: redis-slave
  strategy: {}
  template:
    metadata:
      annotations:
        platform-v.drop-app/belongs-to: redis-slave
      creationTimestamp: null
      labels:
        platform-v.drop-app/deployment: redis-slave
        platform-v.drop-app/loadbalanced: "true"
        platform-v.drop-app/service: redis-slave
    spec:
      containers:
      - image: k8s.gcr.io/redis:e2e
        name: redis-slave
        ports:
        - containerPort: 6370
          name: p-6370-6370
        resources: {}
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-slave-1
  creationTimestamp: null
  name: redis-slave-1
spec:
  replicas: 1
  selector:
    matchLabels:
      platform-v.drop-app/deployment: redis-slave-1
  strategy: {}
  template:
    metadata:
      annotations:
        platform-v.drop-app/belongs-to: redis-slave-1
      creationTimestamp: null
      labels:
        platform-v.drop-app/deployment: redis-slave-1
        platform-v.drop-app/service: redis-slave-1
    spec:
      containers:
      - image: k8s.gcr.io/redis:e2e
        name: redis-slave-1
        ports:
        - containerPort: 6370
          name: p-6370-6370
        resources: {}
status: {}
---
apiVersion: v1
kind: LimitRange
metadata:
  creationTimestamp: null
  name: default
spec:
  limits:
  - default:
      cpu: 100m
      memory: 50Mi
    defaultRequest:
      cpu: 10m
      memory: 50Mi
    type: Container
---
apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: null
  labels:
    platform-v.drop-app/project: v8s-test-ns
  name: v8s-test-ns
spec: {}
status: {}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  creationTimestamp: null
  name: allow-all-external-ips
spec:
  egress:
  - to:
    - ipBlock:
        cidr: 0.0.0.0/0
        except:
        - 10.0.0.0/8
  podSelector: {}
  policyTypes:
  - Egress
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  creationTimestamp: null
  name: allow-dns-policy
spec:
  egress:
  - ports:
    - port: 53
      protocol: TCP
    - port: 53
      protocol: UDP
  podSelector: {}
  policyTypes:
  - Egress
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  creationTimestamp: null
  name: isolate-project-policy
spec:
  egress:
  - to:
    - namespaceSelector:
        matchLabels:
          platform-v.drop-app/project: v8s-test-ns
  podSelector: {}
  policyTypes:
  - Egress
---
apiVersion: v1
kind: ResourceQuota
metadata:
  creationTimestamp: null
  name: quota
spec:
  hard:
    limits.cpu: "1"
    limits.ephemeral-storage: 20Gi
    limits.memory: 1Gi
status: {}
---
apiVersion: v1
kind: Service
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-master,redis-slave
    platform-v.drop-app/redis-master-ports: "6379"
    platform-v.drop-app/redis-slave-ports: "6370"
  creationTimestamp: null
  name: load-balancer
spec:
  ports:
  - name: p-6370-6370
    port: 6370
    protocol: TCP
    targetPort: p-6370-6370
  - name: p-6379-6379
    port: 6379
    protocol: TCP
    targetPort: p-6379-6379
  selector:
    platform-v.drop-app/loadbalanced: "true"
  type: LoadBalancer
status:
  loadBalancer: {}
---
apiVersion: v1
kind: Service
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-master
  creationTimestamp: null
  name: redis-master
spec:
  ports:
  - name: tcp-6379
    port: 6379
    targetPort: 6379
  selector:
    platform-v.drop-app/service: redis-master
status:
  loadBalancer: {}
---
apiVersion: v1
kind: Service
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-slave
  creationTimestamp: null
  name: redis-slave
spec:
  ports:
  - name: tcp-6370
    port: 6370
    targetPort: 6370
  selector:
    platform-v.drop-app/service: redis-slave
status:
  loadBalancer: {}
---
apiVersion: v1
kind: Service
metadata:
  annotations:
    platform-v.drop-app/belongs-to: redis-slave-1
  creationTimestamp: null
  name: redis-slave-1
spec:
  ports:
  - name: tcp-6370
    port: 6370
    targetPort: 6370
  selector:
    platform-v.drop-app/service: redis-slave-1
status:
  loadBalancer: {}
